﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:ViewModels="clr-namespace:SilverlightWebcamEncoder.ViewModels"
             xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
             xmlns:SilverlightWebcamEncoder_Behaviors="clr-namespace:SilverlightWebcamEncoder.Behaviors" xmlns:Controls="clr-namespace:Blacklight.Controls" xmlns:local="clr-namespace:SilverlightWebcamEncoder.Views" x:Class="SilverlightWebcamEncoder.Views.PlaybackView"
             mc:Ignorable="d"
             d:DesignHeight="399"
             d:DesignWidth="516"
             Background="White">
    <UserControl.DataContext>
        <ViewModels:PlaybackViewModel />
    </UserControl.DataContext>
    <Grid x:Name="LayoutRoot">
    	<Grid.RowDefinitions>
    		<RowDefinition/>
    		<RowDefinition Height="80"/>
    	</Grid.RowDefinitions>
        <Border BorderBrush="Black" BorderThickness="1" Background="Black" CornerRadius="4" Margin="0">
        	<Border.Effect>
        		<DropShadowEffect BlurRadius="30" ShadowDepth="0"/>
        	</Border.Effect>
        </Border>
        <Controls:MediaPlayer x:Name="mediaElement">
            <i:Interaction.Behaviors>
            	<SilverlightWebcamEncoder_Behaviors:MediaPlayerPathToStreamBehavior Source="{Binding EncodedFilePath}" />
            </i:Interaction.Behaviors>
        </Controls:MediaPlayer>
        <Button Command="{Binding ClosePlayback}"
                Content="Button"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Style="{StaticResource CloseButton}" Margin="0,5,5,0" Background="White" />
    	<local:MediaUploadView HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1"/>
    </Grid>
</UserControl>
